<?php

define('DS', '/');
define('PATH_ROOT', dirname(__FILE__));
define('PATH_FRAMEWORK', PATH_ROOT . DS . 'Framework');
define('PATH_COMPONENT_ENGINE', PATH_FRAMEWORK . DS . 'Engine');
//define('PATH_VENDORS', PATH_FRAMEWORK . DS . 'Vendors');
define('PATH_VENDORS', 'C:/xampp/htdocs/library');
//define('PATH_VENDORS', '/Users/tolgaakyuz/Desktop/PHP/library'); // Tolga Ev
define('PATH_COMPONENTS', PATH_FRAMEWORK . DS . 'Components');
define('APP_NAME', 'application');
define('PATH_APP', PATH_ROOT . DS . APP_NAME);


require_once(PATH_FRAMEWORK .'/Engine/Auto_Loader.php');
Auto_Loader::INIT();

$engine = new Component_Engine();
$application = $engine->load('Application');
$application->setName('Dernek_Application');
$application->setConfig(PATH_APP . DS .'Configs/componentConfig.php');

$applicationInstance = $application->getApplication();
$applicationInstance->run();
?>